package pkmn.item;

public class KeyItem implements Item, Comparable<KeyItem>{

    public boolean equals(KeyItem keyItem){
        return keyItem.getClass().equals(this.getClass());
    }

    public int compareTo(KeyItem keyItem){
        return keyItem.getClass().getSimpleName().compareTo(this.getClass().getSimpleName());
    }

    @Override
    public String toString(){
        return this.getClass().getSimpleName();
    }
}
